package forms

type CreateGroupForm struct {
	Name     string `json:"name" form:"name" binding:"required,min=5,max=20" msg:"团队名称格式错误"`
	Desc     string `json:"desc" form:"desc" msg:"团队描述格式错误"`
	Cover    string `json:"cover" form:"cover" binding:"required" msg:"团队封面格式错误"`
	LeaderId uint64 `json:"leader_id" form:"leader_id" binding:"required" msg:"团队群主ID格式错误"`
}

type UpdateGroupForm struct {
	GroupId  uint64 `json:"group_id" form:"group_id" binding:"required" msg:"团队ID格式错误"`
	Name     string `json:"name" form:"name" binding:"required,min=5,max=20" msg:"团队名称格式错误"`
	Desc     string `json:"desc" form:"desc" msg:"团队描述格式错误"`
	Cover    string `json:"cover" form:"cover" binding:"required" msg:"团队封面格式错误"`
	LeaderId uint64 `json:"leader_id" form:"leader_id" binding:"required" msg:"团队群主ID格式错误"`
}

type DeleteGroupForm struct {
	GroupId  uint64 `json:"group_id" form:"group_id" binding:"required" msg:"团队ID格式错误"`
	LeaderId uint64 `json:"leader_id" form:"leader_id" binding:"required" msg:"群主ID格式错误"`
}

type JoinMemberForm struct {
	GroupId        uint64 `json:"group_id" form:"group_id" binding:"required" msg:"团队ID格式错误"`
	UserId         uint64 `json:"user_id" form:"user_id" binding:"required" msg:"用户ID格式错误"`
	InvitationCode string `json:"invitation_code" form:"invitation_code" binding:"required" msg:"团队邀请码格式错误"`
}

type ExitMemberForm struct {
	GroupId uint64 `json:"group_id" form:"group_id" binding:"required" msg:"团队ID格式错误"`
	UserId  uint64 `json:"user_id" form:"user_id" binding:"required" msg:"用户ID格式错误"`
}
